package com.yzd.learnjava.generics;

import com.yzd.learnjava.util.Print;

public class OrdinaryArgument {
	public static void main(String[] args) {
		Base base = new Base();
		Derived derived = new Derived();
		DerivedSetter ds = new DerivedSetter();
		ds.set(derived);
		ds.set(base);
	}
}

class OrdinarySetter{
	void set(Base base) {
		Print.print("OrdinarySetter.set(Base)");
	}
}

class DerivedSetter extends OrdinarySetter{
	void set(Derived derived) {
		Print.print("DerivedSetter.set(Derived)");
	}
}
